﻿<%@ Page Language="C#" MasterPageFile="~/MasterPages/MasterPage2.master" AutoEventWireup="true" CodeFile="Admin_QuanLySanPham.aspx.cs" Inherits="Admin_Admin_CapNhatSanPhamDang2" Title="Untitled Page" %>

<%@ Register src="../../UserControls/PageInterface.ascx" tagname="PageInterface" tagprefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <center><h2>Quản Lý Sản Phẩm</h2>
    
    <div align="right" style="width:520px;">
        <asp:Button ID="btnThemSP" runat="server" Text="Thêm Sản Phẩm" 
            onclick="btnThemSP_Click" />
       <asp:Button ID="Button1" runat="server" onclick="Button1_Click" 
            Text="Xóa chọn" />       
    </div>
     
    <div>
    
    <asp:DataList ID="DataList_DSSP" runat="server">
        <ItemStyle BorderColor="#CC3300" BorderStyle="Solid" BorderWidth="1px" />
        
        
    <ItemTemplate>
        <table style="text-align:center;">            
                <tr>
                    <td class="datalist_hinhanh_nho">
                        <asp:HyperLink ID="HyperLink_PicLink" runat="server" NavigateUrl='<%# Eval("MaSP", "~/ChucNang/Admin/Admin_XemChiTietSanPham.aspx?MaSP={0}") %>'>
                            <asp:Image ID="Image_hinhSP"  Height="80" Width="80" runat="server" ImageUrl='<%# Eval("HinhAnh") %>' />
                        </asp:HyperLink>
                        <asp:Label ID="lbMaSP" runat="server" Visible="false" Text=<%#Eval ("MaSP") %>></asp:Label>
                    </td>
                 
                    <td class="datalist_tenSanPham">
                        <asp:HyperLink ID="hyperlink_TenSP" runat="server"  NavigateUrl='<%# Eval("MaSP", "~/ChucNang/Admin/Admin_XemChiTietSanPham.aspx?MaSP={0}") %>'><%# Eval("TenSP") %></asp:HyperLink>
                    </td>
                  
                    
                    
                    <td class="datalist_giaSanPham"><%# Eval("GiaCu") %>
                    </td>
                    
                    <td class="datalist_checkbox">
                        <asp:CheckBox ID="CheckBox1" runat="server" Checked=<%#Eval ("TrangThaiBan") %> 
                            Enabled="False" />
                    </td>
                    
                    <td class="datalist_link">
                        <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl=<%# Eval("MaSP", "Admin_CapNhatSanPhamChiTiet.aspx?MaSP={0}") %>>Cập nhật</asp:HyperLink>
                        
                    </td>
                    
                    <td class="datalist_checkbox">
                        <asp:CheckBox ID="ckSelect" runat="server" />
                    </td>
                </tr>
            </table>
    </ItemTemplate>   
    
    
    </asp:DataList>        
    </div>
    
    <div align="right" style="width:520px;">
        <uc1:PageInterface ID="PageInterface1" runat="server" />
       <asp:Button ID="Button2" runat="server" onclick="Button1_Click" 
            Text="Xóa chọn" />       
    </div>
    
    
    
    
    
    
    </center>
    
</asp:Content>

